Import('RTT_ROOT')
Import('rtconfig')
from building import *

cwd          = GetCurrentDir()
include_path = [cwd]
src          = []

if GetDepend(['BSP_USING_XPT2046']):
    src += ['xpt2046.c']
    src += ['xpt2046_calibration.c']

if GetDepend(['BSP_USING_XPT2046_EXAMPLE']):
    src += ['xpt2046_example.c']
    
group = DefineGroup('BSP', src, depend = ['BSP_USING_XPT2046'], CPPPATH = include_path)

Return('group')
